import request from '@/util/request'

export function GetList(data) {
	return request({
		url: '/user/getList',
		method: 'post',
		data: data
	})
}

export function UserList() {
	return request({
		url: '/user/userList',
		method: 'get'
	})
}

export function GetInfo(id) {
	return request({
		url: '/user/getById/' + id,
		method: 'get'
	})
}

export function Search(data) {
	return request({
		url: '/user/search',
		method: 'post',
		data: data
	})
}

export function Delete(ids) {
	return request({
		url: '/user/delete',
		method: 'post',
		data: ids
	})
}

export function Insert(data) {
	return request({
		url: '/user/insert',
		method: 'post',
		data: data
	})
}

export function Update(data) {
	return request({
		url: '/user/update',
		method: 'post',
		data: data
	})
}

export function Reset(id) {
	return request({
		url: '/user/reset/'+ id,
		method: 'get'
	})
}

export function UserLogin(data) {
	return request({
		url: '/user/login',
		method: 'post',
		data: data
	})
}

